package com.yuyou.activity.group.service.service.impl;

import com.yuyou.activity.group.service.entity.ActivityGroupbuyGoods;
import com.yuyou.activity.group.service.mapper.ActivityGroupbuyGoodsMapper;
import com.yuyou.activity.group.service.service.IActivityGroupbuyGoodsService;
import com.yuyou.activity.group.service.vo.resp.GroupSpGoodsVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ActivityGroupbuyGoodsServiceImpl implements IActivityGroupbuyGoodsService {

    @Autowired
    private ActivityGroupbuyGoodsMapper mapper;

    @Override
    public int deleteByPrimaryKey(Long activityGroupbuyGoodsId) {
        return mapper.deleteByPrimaryKey(activityGroupbuyGoodsId);
    }

    @Override
    public int insert(ActivityGroupbuyGoods record) {
        return mapper.insert(record);
    }

    @Override
    public ActivityGroupbuyGoods selectByPrimaryKey(Long activityGroupbuyGoodsId) {
        return mapper.selectByPrimaryKey(activityGroupbuyGoodsId);
    }

    @Override
    public int updateByPrimaryKeySelective(ActivityGroupbuyGoods record) {
        return mapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public List<GroupSpGoodsVo> findGoods(String projectCode) {
        return mapper.findGoods(projectCode);
    }
}